const fs = require("fs");
const { PrismaClient } = require("@prisma/client");

const prisma = new PrismaClient();

// const data = JSON.parse(fs.readFileSync("./data/zp-bj.json")).map((item) => {
//   return {
//     bossAvatar: item.bossAvatar,
//     bossName: item.bossName,
//     bossTitle: item.bossTitle,
//     jobName: item.jobName,
//     salaryDesc: item.salaryDesc,
//     jobExperience: item.jobExperience,
//     jobDegree: item.jobDegree,
//     jobLabels: item.jobLabels.join(","),
//     welfareList: item.welfareList.join(","),
//     skills: item.skills.join(","),
//     cityName: item.cityName,
//     city: item.city + "",
//     areaDistrict: item.areaDistrict,
//     businessDistrict: item.businessDistrict,
//     brandName: item.brandName,
//     brandLogo: item.brandLogo,
//     brandStageName: item.brandStageName,
//     brandIndustry: item.brandIndustry,
//     brandScaleName: item.brandScaleName,
//   };
// });

// prisma.job
//   .createMany({
//     data,
//   })
//   .then((res) => {
//     console.log("数据存进去了");
//   });
